

#ifndef USER_FUSHI_DRIVE_H
#define USER_FUSHI_DRIVE_H
#include "main.h"
#include "user_central_control.h"

#define FUSHI_READ_DATA 				(0)
#define FUSHI_READ_DEVICE_NUMBER 		(1)
#define FUSHI_READ_PRO 					(2)
#define FUSHI_SET_POR_OPEN 				(3)
#define FUSHI_SET_POR_CLOSE 			(4)

#define FUSHI_READ_DEVICE1              (5)
#define FUSHI_SET_DEVICE1_OPEN 			(6)
#define FUSHI_SET_DEVICE1_CLOSE 		(7)

#define FUSHI_READ_DEVICE2              (8)
#define FUSHI_SET_DEVICE2_OPEN 			(9)
#define FUSHI_SET_DEVICE2_CLOSE 		(10)

#define FUSHI_SET_DEVICE_RESET 			(11)
#define FUSHI_SET_DEVICE_TIME 			(12)
#define FUSHI_SET_CHECK_TIME 			(13)


void user_fushi_drive_init(void);
void user_fushi_set_fushi_status(uint8_t send_status,uint16_t cehck_time,uint8_t *device_time);

void user_fushi_drive_send(UART_HandleTypeDef *huart,USER_CENTRAL_CONTROL_STATUS_T *status);
void user_fushi_drive_add_data(uint8_t data);
uint8_t user_fushi_drive_handle(void);
uint8_t user_fushi_drive_check_num(void);


#endif /* USER_FUSHI_DRIVE_H */
